# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sipsak
pkgver=0.9.8.1
pkgrel=1
epoch=1
groups=('blackarch' 'blackarch-voip')
pkgdesc='A small command line tool for developers and administrators of Session Initiation Protocol (SIP) applications.'
arch=('x86_64' 'aarch64')
url='https://github.com/nils-ohlmeier/sipsak/releases'
license=('GPL')
depends=('gnutls' 'openssl' 'c-ares')
source=("https://github.com/nils-ohlmeier/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('b018a463e028b1e6cb31507957b7d2c1836341e2456d0df366edc12937d788ac548da6434d310917c9e32e12c02b7ae1462443c2461152ee3a3ee9cbf35d4618')

build() {
  cd "$pkgname-$pkgver"

  autoreconf --install

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR=$pkgdir install
}

